package com.mo.axion.common.pipeline;

import com.mo.axion.common.vo.BasicResultVO;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author Mo
 * @createTime 2024/2/1 1:27
 * @description 责任链上下文
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ProcessContext<T extends ProcessModel> {
    /**
     * 标识责任链的code
     */
    private String code;
    /**
     * 负责责任链上下文数据的模型
     */
    private T processModel;
    /**
     * 责任链中断的标识
     */
    private Boolean isNeedBreak;
    /**
     * 流程处理结果
     */
    private BasicResultVO response;
}





